//
//  DetailSpecialModel.m
//  BTRIP
//
//  Created by johnbk on 15/11/16.
//  Copyright © 2015年 johnbk. All rights reserved.
//

#import "DetailSpecialModel.h"
#import "DetailSpecialSubModel.h"
@implementation DetailSpecialModel
-(void)dealloc{
	[_article_sections release];
	[_title release];
	[_name release];
	[_image_url release];
	[_id release];
	[super dealloc];
}
-(void)setValue:(id)value forKey:(NSString *)key{
	if ([key isEqualToString:@"article_sections"]) {
		NSMutableArray *tempArray = [NSMutableArray array];
		
		for (NSDictionary *dic in value) {
			DetailSpecialSubModel *detailSpecialSubModel = [[DetailSpecialSubModel alloc]init];
			[detailSpecialSubModel setValuesForKeysWithDictionary:dic];
			[tempArray addObject:detailSpecialSubModel];
			[detailSpecialSubModel release];
		}
		self.article_sections = tempArray;
	}else{
		[super setValue:value forKey:key];
	}
}
@end
